//
   Created by wanthering on 2017/8/14.

html
    head
        meta(name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no")
        if(newId)
            mata(name='newId' content= newId)
        link(rel="stylesheet" href="/stylesheets/reset.css")
        link(rel="stylesheet" href="/stylesheets/login.css")
        link(rel="stylesheet" href="/stylesheets/webuploader.css")
        link(rel="stylesheet" href="/stylesheets/custom.css")

        script(src="/javascripts/jquery.js")
        script(src="/javascripts/webuploader.js")
    body
        .login-wrapper
            .grey-shade
            .login-box
                .login-con
                    .form-group
                        input(type='text' id='username' placeholder='用户名')
                    .form-group
                        input(type='password' id='password' placeholder='密码')
                    .form-group
                        button(type="submit" class="tran pr" id='login')
                            a(href="javascript:;" class="tran") 登录
        #uploader
            h1.head 语音分享后台配置
            form(method="post" action="/admin/audio/upload" class='form')
                if id
                    input(type="hidden" name="id" value= id)
                ul
                    li
                        label.label 群名称:
                        .inputWrap
                            input(type="text" name="qun" value= qun)
                        .clearfix
                    li
                        label.label 语音地址:
                        .inputWrap
                            input(type="text" name="url" value= url)
                        .clearfix
                    li
                        label.label 分享标题:
                        .inputWrap
                            input(type="text" name="title" value= title)
                        .clearfix
                    li.ta
                        label.label 分享描述:
                        .inputWrap
                            textarea( name="desc")= desc
                        .clearfix
                    li
                        label.label 群主微信:
                        .inputWrap
                            input(type="text" name="admin" value= admin)
                        .clearfix
                    li.ta
                        label.label 内容简介:
                        .inputWrap
                            textarea( name="info" rows='3')= info
                        .clearfix
                    li.picContainer
                        .picWrapper
                            #faceList.uploader-list
                            #facePicker 主页封面图片
                            if faceUrl
                                input#faceUrl(type="hidden" name="faceUrl" value=faceUrl)
                            else
                                input#faceUrl(type="hidden" name="faceUrl" value="##invalid##")
                            .clearfix
                        .picWrapper
                            #qunList.uploader-list
                            #qunPicker 微信群二维码
                            if qunUrl
                                input#qunUrl(type="hidden" name="qunUrl" value=qunUrl)
                            else
                                input#qunUrl(type="hidden" name="qunUrl" value="##invalid##")
                            .clearfix
                    li.picContainer
                        .picWrapper
                            #posterList.uploader-list
                            #posterPicker 海报图片
                            if faceUrl
                                input#posterUrl(type="hidden" name="posterUrl" value=posterUrl)
                            else
                                input#posterUrl(type="hidden" name="posterUrl" value="##invalid##")
                            .clearfix
                        .picWrapper
                            #posterQr
                    li
                        button.submit(type="submit") 提交
            if !haveLesson
                a(id='afterClass' target='_blank' class='newLink')   开启课后阅读
            else
                a(id='afterClass' target='_blank' class='newLink')   编辑课后阅读模块>>>>

    script(src="/javascripts/upload.js")
    script(src="/javascripts/login.js")